package com.weepal.pavement.mqtt.demo.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weepal.pavement.mqtt.demo.config.dataSource.DataSourceConfig;
import com.weepal.pavement.mqtt.demo.config.dataSource.TargetSource;
import com.weepal.pavement.mqtt.demo.mapper.MqttDevicesMapper;
import com.weepal.pavement.mqtt.demo.vo.MqttDevices;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@TargetSource(DataSourceConfig.Constant.MASTER)
public class MqttDevicesService extends ServiceImpl<MqttDevicesMapper, MqttDevices> {
    public List<MqttDevices> getList(Map<String, Object> map) {
        return baseMapper.getList(map);
    }

    public int up(String sql) {
        return baseMapper.up(sql);
    }
}
